package cn.lovecyy.mockjson.core.type;

import com.apifan.common.random.source.PersonInfoSource;
import cn.lovecyy.mockjson.core.domain.TypeConfig;

/**
 * NameTypeMocker
 *
 * @author Yakir
 */
public class NameTypeMocker implements TypeMocker {

	@Override
	public String getType() {
		return "name";
	}

	@Override
	public Object mock(TypeConfig config) {
		return PersonInfoSource.getInstance().randomChineseName();
	}

}
